package com.yesido.moshi.seven.singleResponsibility;

/**
 * @author yesido
 * @description 单一职责原则
 * @date 2023-06-11 23:44
 * @Version 8.3
 */
public class SingleResponsibility1 {
    public static void main(String[] args) {
        RoadVehicle roadvehicle = new RoadVehicle();
        roadvehicle.run("摩托车");
        roadvehicle.run("汽车");

        AirVehicle airvehicle = new AirVehicle();
        airvehicle.run("飞机");
    }
}
